ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/rrdgraphing/Makefile
Revision: 1.3
Committed: Sun Feb 16 21:46:25 2003 UTC (21 years, 10 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +5 -2 lines
Log Message:
Last thing, tidy up of some install targets. It was installing the CVS
directories when it shouldn't have been :-)

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for the rrd graphing
2 tdb 1.3 # $Id: Makefile,v 1.2 2003/02/16 20:35:58 tdb Exp $
3 tdb 1.1
4     include Config.inc
5    
6     .PHONY : all
7     all : dist
8    
9     ### Code Building
10    
11     .PHONY : build
12     build :
13     cp -R $(FILES) $(BUILD)
14 tdb 1.2 cp $(SOURCEROOT)/$(LICFILE) $(BUILD)
15 tdb 1.1 @touch $(MCOMPILECHECK)
16    
17     ### Changelog
18    
19     .PHONY : changelog
20     changelog : $(CHANGELOG)
21    
22     .PHONY : mkchangelog
23     mkchangelog :
24     if [ -d $(SOURCEROOT)/CVS ]; then \
25     $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \
26     else \
27     echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \
28     fi
29    
30     ### Dist Making
31    
32     .PHONY : dist
33     dist :
34     cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST)
35    
36     ### Code Cleaning
37    
38     .PHONY : clean
39     clean :
40     cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
41     rm -f $(MCOMPILECHECK)
42    
43     .PHONY : distclean
44     distclean : clean
45     cd $(BUILD) && rm -f $(CLPATH)
46     rm -f Config.inc
47    
48     ### Install
49    
50     .PHONY : install
51     install : $(MCOMPILECHECK) $(CHANGELOG)
52     @echo "-------------------------------------------------------"
53     @echo "Installing to $(INSTALLPREFIX)"
54     @echo " copying files to $(INSTALLPREFIX)"
55     @mkdir -p $(INSTALLPREFIX)
56 tdb 1.3 @echo "CVS" > TAR_EXCLUDE_TMP
57     @echo ".#*" >> TAR_EXCLUDE_TMP
58     @tar -cf - -X TAR_EXCLUDE_TMP $(FILES) | ( cd $(INSTALLPREFIX) && tar -xf - )
59     @rm -f TAR_EXCLUDE_TMP
60 tdb 1.1 @echo " copying text information files to $(INSTALLPREFIX)"
61     @cp $(BUILD)/COPYING $(CHANGELOG) $(INSTALLPREFIX)
62     @echo "Completed install to $(INSTALLPREFIX)"
63     @echo "-------------------------------------------------------"
64    
65     ### Global Include
66    
67     include $(MKINC)