This repository was archived by the owner on Mar 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
80 lines (70 loc) · 3.13 KB
/
Copy pathMakefile.in
File metadata and controls
80 lines (70 loc) · 3.13 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
#
# ./Makefile
# Make entire DumbOP package
# Author: Simon Butcher
# Copyright (c) 2001 Alien Internet Services
#
RM=@RM@
SUB_DIRS=src
.PHONY: all clean dclean autoconf dready dsums distro
# Make the package
all:
@echo "**********************************************************"
@echo "** Making the DumbOP IRC bot package **"
@echo "**********************************************************"
for d in $(SUB_DIRS); do $(MAKE) -C $$d; done
# Clean the package for a fresh start
clean:
@echo "**********************************************************"
@echo "** Cleaning out created files **"
@echo "**********************************************************"
for d in $(SUB_DIRS); do $(MAKE) -C $$d clean; done
$(RM) *~
# Clean the package for a possible new distribution
dclean:
@echo "**********************************************************"
@echo "** Performing a full clean ready for a new version **"
@echo "**********************************************************"
for d in $(SUB_DIRS); do cd $$d; $(MAKE) dclean; cd ..; done
$(RM) *~ Makefile config.log config.cache config.status configure.scan $(CRC_FILE)
# Create AutoConf files from templates
autoconf:
@echo "**********************************************************"
@echo "** Creating new configure script and autoconf.h **"
@echo "**********************************************************"
autoconf configure.in >configure
-chmod 755 configure
autoheader --localdir=src/include
# Create files, like the mini-makefile and crc file, for a new distribution
dready:
@echo "**********************************************************"
@echo "** Creating self-destructing configure-compile Makefile **"
@echo "**********************************************************"
@echo "# Automatic configure and compile Makefile" > Makefile
@echo "# Copyright (c) 2001 Alien Internet Services" >> Makefile
@echo "#" >> Makefile
@echo "# @configure_input@" >> Makefile
@echo "# This makefile was pre-generated and will be destroyed" >> Makefile
@echo "" >> Makefile
@echo "all:" >> Makefile
@echo " @echo \"**********************************************************\"" >> Makefile
@echo " @echo \"** Configuring the DumbOP package to your system **\"" >> Makefile
@echo " @echo \"**********************************************************\"" >> Makefile
@echo " @./configure" >> Makefile
@echo " @echo \"**********************************************************\"" >> Makefile
@echo " @echo \"** Compiling DumbOP package **\"" >> Makefile
@echo " @echo \"**********************************************************\"" >> Makefile
@echo " make" >> Makefile
@echo "" >> Makefile
@echo "install: all" >> Makefile
@echo " make install" >> Makefile
@echo "**********************************************************"
@echo "** Creating CRC and file-size index file **"
@echo "**********************************************************"
dsums:
-sum `find` >BSD.SUM
-md5sum `find` >MD5.SUM
# Setup package for new distribution or archive
distro: autoconf dclean dready dsums
@echo "Done."