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
46 ASDF_FILE
:= com.dvlsoft.clon.asd
48 DIST_NAME
:= clon-
$(SHORT_VERSION
)
49 TARBALL
:= $(DIST_NAME
).
tar.gz
50 SIGNATURE
:= $(TARBALL
).asc
53 ln
-fs
"`pwd`/$(ASDF_FILE)" "$(SYSTEMS_DIR)/"
55 all-formats
dvi ps ref all-formats-ref dvi-ref ps-ref
:
58 # Needed because we have an INSTALL file which fucks up the gen mechanism
59 # (remember that Mac OSX is case-insensitive).
61 $(MAKE
) gen TARGET
=install
64 -rm -f
"$(SYSTEMS_DIR)/$(ASDF_FILE)"
65 $(MAKE
) gen TARGET
=uninstall
69 $(MAKE
) gen TARGET
=clean
71 # #### NOTE: be sure to propagate to the subdirs first, otherwise, version.inc
72 # will keep on being reconstructed.
74 $(MAKE
) gen TARGET
=distclean
75 -rm *.
tar.gz
*.
tar.gz.asc
77 -rm -fr
$($(LISP
)_BINLOC
)-*
78 -rm -fr
"${HOME}"/.cache
/common-lisp
/$($(LISP
)_CACHE
)-*"`pwd`"
81 git tag
-a
-m
'Version $(LONG_VERSION)' 'version-$(SHORT_VERSION)'
88 -install -m
644 $(TARBALL
) "$(W3DIR)/attic/"
89 -install -m
644 $(SIGNATURE
) "$(W3DIR)/attic/"
91 <? lref (\"clon/attic/clon-$(SHORT_VERSION).tar.gz\", \
92 contents (\"Dernière version\", \"Latest version\")); ?> \
94 <? lref (\"clon/attic/clon-$(SHORT_VERSION).tar.gz.asc\", \
95 contents (\"Signature GPG\", \"GPG Signature\")); ?>" \
96 > "$(W3DIR)/latest.txt"
97 chmod
644 "$(W3DIR)/latest.txt"
98 git push
--tags "$(W3DIR)/clon.git" :
99 $(MAKE
) gen TARGET
=install-www
101 && ln
-fs attic
/$(TARBALL
) latest.
tar.gz \
102 && ln
-fs attic
/$(SIGNATURE
) latest.
tar.gz.asc
108 @for i in
$(SUBDIRS
) ; do \
109 echo
"making $(TARGET) in $${i} ..." ; \
110 ( cd
$${i} && $(MAKE
) $(TARGET
) ) ; \
114 git archive
--format
=tar --prefix=$(DIST_NAME
)/ \
115 --worktree-attributes HEAD \
118 $(SIGNATURE
): $(TARBALL
)
122 $(MAKE
) gen TARGET
=$@
125 all-formats
dvi ps ref all-formats-ref dvi-ref ps-ref \
126 install-system
install install-ref
uninstall \
128 tag
tar gpg
dist install-www \
133 ### Makefile ends here