1 ### Makefile --- Toplevel directory
3 ## Copyright (C) 2010, 2011 Didier Verna
5 ## Author: Didier Verna <didier@lrde.epita.fr>
6 ## Maintainer: Didier Verna <didier@lrde.epita.fr>
8 ## This file is part of CLon
10 ## Permission to use, copy, modify, and distribute this software for any
11 ## purpose with or without fee is hereby granted, provided that the above
12 ## copyright notice and this permission notice appear in all copies.
14 ## THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15 ## WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16 ## MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17 ## ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19 ## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20 ## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 ## Contents management by FCM version 0.1.
27 ## Please use GNU Make with this makefile.
42 SUBDIRS
:= src sbcl clisp \
45 SYSTEMS_DIR
:= $(SHARE
)/common-lisp
/systems
47 DIST_NAME
:= $(PROJECT
)-$(SHORT_VERSION
)
48 TARBALL
:= $(DIST_NAME
).
tar.gz
49 SIGNATURE
:= $(TARBALL
).asc
52 ln
-fs
"`pwd`/$(ASDF_FILE)" "$(SYSTEMS_DIR)/"
54 all-formats
dvi ps ref all-formats-ref dvi-ref ps-ref
:
57 # Needed because we have an INSTALL file which fucks up the gen mechanism
58 # (remember that Mac OSX is case-insensitive).
60 $(MAKE
) gen TARGET
=install
63 -rm -f
"$(SYSTEMS_DIR)/$(ASDF_FILE)"
64 $(MAKE
) gen TARGET
=uninstall
68 $(MAKE
) gen TARGET
=clean
70 # #### NOTE: be sure to propagate to the subdirs first, otherwise, version.inc
71 # will keep on being reconstructed.
73 $(MAKE
) gen TARGET
=distclean
74 -rm *.
tar.gz
*.
tar.gz.asc
76 -rm -fr
$($(LISP
)_BINLOC
)-*
77 -rm -fr
"${HOME}"/.cache
/common-lisp
/$($(LISP
)_CACHE
)-*"`pwd`"
80 git tag
-a
-m
'Version $(LONG_VERSION)' 'version-$(SHORT_VERSION)'
87 -install -m
644 $(TARBALL
) "$(W3DIR)/attic/"
88 -install -m
644 $(SIGNATURE
) "$(W3DIR)/attic/"
90 <? lref (\"$(PROJECT)/attic/$(PROJECT)-$(SHORT_VERSION).tar.gz\", \
91 contents (\"Dernière version\", \"Latest version\")); ?> \
93 <? lref (\"$(PROJECT)/attic/$(PROJECT)-$(SHORT_VERSION).tar.gz.asc\", \
94 contents (\"Signature GPG\", \"GPG Signature\")); ?>" \
95 > "$(W3DIR)/latest.txt"
96 chmod
644 "$(W3DIR)/latest.txt"
97 git push
--tags "$(W3DIR)/$(PROJECT).git" :
98 $(MAKE
) gen TARGET
=install-www
100 && ln
-fs attic
/$(TARBALL
) latest.
tar.gz \
101 && ln
-fs attic
/$(SIGNATURE
) latest.
tar.gz.asc
107 @for i in
$(SUBDIRS
) ; do \
108 echo
"making $(TARGET) in $${i} ..." ; \
109 ( cd
$${i} && $(MAKE
) $(TARGET
) ) ; \
113 git archive
--format
=tar --prefix=$(DIST_NAME
)/ \
114 --worktree-attributes HEAD \
117 $(SIGNATURE
): $(TARBALL
)
121 $(MAKE
) gen TARGET
=$@
124 all-formats
dvi ps ref all-formats-ref dvi-ref ps-ref \
125 install-system
install install-ref
uninstall \
127 tag
tar gpg
dist install-www \
132 ### Makefile ends here