forked from essennell/Poros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (21 loc) · 1018 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
LIBSOURCES=src/AppConfigHandler.cs src/CmdLineHandler.cs src/CollectionExtensions.cs src/KeyValueHandler.cs src/NullHandler.cs src/SystemConfiguration.cs src/SystemEnvironmentHandler.cs src/UniversalConfigAttribute.cs src/UniversalConfiguration.cs
TESTSOURCES= src/MyConfig.cs src/TestAppConfigHandler.cs src/TestCmdLineHandler.cs src/TestConfiguration.cs src/TestSysEnvHandler.cs src/TestExtensions.cs
CONFIGSRC=src/app.config
CONFIG=poros.test.dll.config
LIBS=..
OUTDIR=..
.PHONY: all
all: $(OUTDIR)/poros.dll
.PHONY: tests
tests: xunit.dll poros.dll Poros.Test.dll
xunit Poros.Test.dll
xunit.dll:
cp $(LIBS)/xunit.dll .
$(OUTDIR)/poros.dll: tests poros.dll
cp poros.dll $(OUTDIR)
poros.dll: $(LIBSOURCES)
dmcs -r:System.Configuration.dll -t:library -out:poros.dll $(LIBSOURCES)
Poros.Test.dll: poros.dll $(TESTSOURCES) $(CONFIG)
dmcs -lib:$(LIBS) -r:poros.dll -r:System.Configuration.dll -r:xunit.dll -t:library -out:Poros.Test.dll $(TESTSOURCES)
$(CONFIG) : $(CONFIGSRC)
cp $(CONFIGSRC) $(CONFIG)