source: to-imperative/trunk/Makefile @ 691

Last change on this file since 691 was 448, checked in by pooh, 18 years ago
  • Project tree reorganization, libp++ moved into separate directory.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1SUBDIRS = libstdc++-stub compiler libp++ runtime library samples
2INSTALL_SUBDIRS = $(SUBDIRS)
3
4include rules.mk
5include version.mk
6
7DISTFILES = Makefile config.functions config.mk rules.mk config.guess
8DISTFILES += version.mk spec.in
9DISTFILES += ChangeLog createlog
10
11all::
12        @echo All done.
13
14dist::
15        rm -rf $(ARCHIVEDIR)
16        mkdir $(ARCHIVEDIR)
17        cp -dpPr `cat $(DISTLIST)` $(ARCHIVEDIR)/
18        tar cvzf $(ARCHIVENAME) $(ARCHIVEDIR)/*
19        rm -rf $(ARCHIVEDIR)
20
21snapshot::
22        rm -rf $(SNAPSHOTDIR)
23        mkdir $(SNAPSHOTDIR)
24        cp -dpPr `cat $(DISTLIST)` $(SNAPSHOTDIR)/
25        tar cvzf $(SNAPSHOTNAME) $(SNAPSHOTDIR)/*
26        rm -rf $(SNAPSHOTDIR)
27
28$(PKGNAME).spec: spec.in
29        NAME="$(PKGNAME)" \
30        VERSION="$(PKGVERSION)" \
31        RELEASE="$(PKGRELEASE)" \
32        ARCHIVEDIR="$(ARCHIVEDIR)" \
33        . $< >$@
34
35$(PKGNAME)-snapshot.spec: spec.in
36        NAME="$(PKGNAME)-snapshot" \
37        VERSION="$(SNAPSHOTDATE)" \
38        RELEASE="$(PKGRELEASE)" \
39        ARCHIVEDIR="$(SNAPSHOTDIR)" \
40        . $< >$@
41
42.rpmmacros:
43        { \
44        echo "%_fixperms chmod -R  a+rX,u+w,g-w,o-w"; \
45        echo "%_topdir `pwd`"; \
46        echo "%_rpmdir `pwd`"; \
47        echo "%_srcrpmdir `pwd`"; \
48        echo "%_builddir `pwd`"; \
49        echo "%_sourcedir `pwd`"; \
50        echo "%_specdir `pwd`"; \
51        echo "%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm"; \
52        } >$@
53
54rpm: $(PKGNAME).spec .rpmmacros all dist
55        HOME=`pwd` rpm -ba $<
56        rm -rf $(BUILDROOT)
57
58snaprpm: $(PKGNAME)-snapshot.spec .rpmmacros all snapshot
59        HOME=`pwd` rpm -ba $<
60        rm -rf $(BUILDROOT)
61
62install:: all
63        mkdir -p -m 0755 $(INSTALL_DIR)
64
65clean::
66        rm -f .rpmrc *.spec *.list
67#       rm -f *.tar.gz *.rpm
Note: See TracBrowser for help on using the repository browser.