# This makefile automates generates the CGI demo programs and # compressed files. # By default, compile all of the demo programs. all: gnatmake demo.adb gnatmake minimal.adb gnatmake search.adb gnatmake test_cookie.adb gnatmake test_send.adb clean: /bin/rm -f demo getdemo minimal search test_get test_cookie \ test_send *.o *.ali *.BAK distribute: clean # weblint -e bad-link -e upper-case -e mailto-link -x netscape *.html echo "Note: only distributing filenames matching [a-zA-Z]*" chmod ugo+r [a-zA-Z]* chmod g-w [a-zA-Z]* rm -f adacgi.zip adacgi.tar.gz *.BAK *.rpm tar -cvf - [a-zA-Z]* > adacgi.tar gzip --best adacgi.tar zip -9 adacgi.zip [a-zA-Z]* -x adacgi.zip -x adacgi.tar.gz # uuencode cgi.tar.gz cgi.tar.gz > cgi.tar.gz.uu # uuencode cgi.zip cgi.zip > cgi.zip.uu # more readme *.html *.htm *.ads *.adb makefile > cgi.email chmod ugo+r [a-zA-Z]* chmod g-w * echo "If all has gone well, run 'make RPM' as root." RPM: cp adacgi.zip /usr/src/redhat/SOURCES cp adacgi.spec /usr/src/redhat/SPECS cd /usr/src/redhat/SPECS; rpm -ba adacgi.spec cp /usr/src/redhat/RPMS/i386/adacgi-*.i386.rpm /usr/src/redhat/SRPMS/adacgi-*.src.rpm . chown --reference=. *.rpm chmod g-w * # i386 version goes into /usr/src/redhat/RPMS/i386/adacgi-1.4-1.i386.rpm # Source RPM in SRPMS. # /usr/doc/adacgi-1.4 (and its sample subdirectory) # /usr/lib/gnat/adainclude gets the files cgi.ad{b,s} (source) # /usr/lib/gnat/adalib/cgi.o is the resulting binary