-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.release
More file actions
46 lines (32 loc) · 820 Bytes
/
Makefile.release
File metadata and controls
46 lines (32 loc) · 820 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PUB_FILES?= ${RELEASE_FILES}
PUB_SERVER?= ver.miun.se
PUB_DIR?= /srv/web/svn/courses/
PUB_USER?=
PUB_GROUP?= svn
PUB_METHOD?= ssh
PUB_VCS?= git
PUB_AUTOTAG?= true
.PHONY: all
all: ${RELEASE_FILES}
RELEASE_FILES+= studyguide.pdf
SRC-studyguide.pdf=../studyguide/studyguide.pdf
.PHONY: print
print: ${RELEASE_FILES}
.PHONY: clean distclean
define target_rules
all: $(1)
$(1): ${SRC-$(1)}
cp $$^ $$@
${SRC-$(1)}::
${MAKE} -C $$(dir $$@) $$(notdir $$@)
clean: clean-$(1)
clean-$(1):
${MAKE} -C $$(dir ${SRC-$(1)}) clean
distclean: distclean-$(1)
distclean-$(1):
${MAKE} -C $$(dir ${SRC-$(1)}) distclean clean-depends
endef
$(foreach target,${RELEASE_FILES},$(eval $(call target_rules,${target})))
INCLUDE_MAKEFILES=../makefiles
include ${INCLUDE_MAKEFILES}/pub.mk
include ${INCLUDE_MAKEFILES}/doc.mk