forked from afrantzis/bless
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile.am
44 lines (30 loc) · 1 KB
/
Makefile.am
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
33
34
35
36
37
38
39
40
41
42
43
44
EXTRA_DIST = AUTHORS COPYING NEWS README README.packaging \
bless.mdp bless.mds bless.spec autogen.sh bless.mi
SUBDIRS = po builder src bin data doc . tests
DIST_SUBDIRS= po builder src bin doc data tests
CLEANFILES = bless
PWD= $(shell pwd)
MCS_FLAGS= -nowarn:0169
if ENABLE_DEBUG
MCS_FLAGS+=-debug
endif
if ENABLE_UNIX_SPECIFIC
MCS_FLAGS+=-d:ENABLE_UNIX_SPECIFIC
endif
all: bless-builder
$(MONO_PROGRAM) builder/bless-builder.exe Bless $(MCS_FLAGS)
sed -e 's,@blesssrcdir\@,$(PWD),g' bless-script > bless
chmod +x bless
check-am: bless-builder
$(MONO_PROGRAM) builder/bless-builder.exe BlessTests $(MCS_FLAGS)
bless-builder:
cd builder && $(MAKE) builder
dist-hook:
git log > $(distdir)/ChangeLog
install-data-local:
$(INSTALL) -d $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)
$(INSTALL_DATA) AUTHORS COPYING INSTALL ChangeLog NEWS \
README README.packaging bless.spec \
$(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)
uninstall-local:
rm -rf $(DESTDIR)$(libdir)/$(PACKAGE_NAME)