-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 808 Bytes
/
Makefile
File metadata and controls
32 lines (21 loc) · 808 Bytes
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
export PACKAGE_NAME = citustools
export prefix := /usr/local
export bindir := $(prefix)/bin
export datarootdir := $(prefix)/share
export mandir := $(datarootdir)/man
export sysconfdir := $(prefix)/etc
export pkgsysconfdir := $(sysconfdir)/$(PACKAGE_NAME)
DIRNAMES = automated_packaging packaging uncrustify valgrind travis
PROPERTY_FILE = toolsvars
COPY_PROPERTY:
cp -f $(PROPERTY_FILE) $(bindir)
install : COPY_PROPERTY
# logic from http://stackoverflow.com/a/11206700
SUBDIRS := $(addsuffix /., $(DIRNAMES))
TARGETS := all clean install
SUBDIRS_TARGETS := $(foreach t,$(TARGETS),$(addsuffix $t,$(SUBDIRS)))
.PHONY : $(COPY_PROPERTY) $(TARGETS) $(SUBDIRS_TARGETS)
$(TARGETS) : % : $(addsuffix %,$(SUBDIRS))
$(SUBDIRS_TARGETS) :
$(MAKE) -C $(@D) $(@F:.%=%)
automated_packaging: $(COPY_PROPERTY)