goer%sophist@GARGOYLE.UCHICAGO.EDU (Richard Goerwitz) (10/10/90)
I often find that I can't coax make programs to handle Icon programs. Since I send out a lot of code over this newsgroup, I have a vested interest in making sure my makefiles work. Below is a shar archive of a test program. If anyone is feeling adventurous, I'd appreciate it very much if they would direct their adventursomeness in the fol- lowing way: Un-shar the following archive, then make. Write me if it doesn't work. Write me if it does work. Tell me your OS, and your make program. Note that the following shar archive can be "made" using gnu make. I can't get it to work on my Xenix (SysVR3-based) system using the stock make program. Nor can I get it to work using the stock Sun make here on sophist. It "should" work, though. The fact that it doesn't explains the ponderousness of the makefiles I distribute with my programs. -Richard ---- Cut Here and feed the following to sh ---- #!/bin/sh # This is a shell archive (produced by shar 3.49) # To extract the files from this archive, save it to a file, remove # everything above the "!/bin/sh" line above, and type "sh file_name". # if test -r _shar_seq_.tmp; then echo 'Must unpack archives in sequence!' echo Please unpack part `cat _shar_seq_.tmp` next exit 1 fi # ============= Makefile ============== if test -f 'Makefile' -a X"$1" != X"-c"; then echo 'x - skipping Makefile (File already exists)' rm -f _shar_wnt_.tmp else > _shar_wnt_.tmp echo 'x - extracting Makefile (Text)' sed 's/^X//' << 'SHAR_EOF' > 'Makefile' && X.SUFFIXES: .u2 .icn .icn~ X X.icn.u2: X icont -c $*.icn X.u2: X icont -o $* $*.u1 $*.u2 X @/bin/rm $*.u? X Xall: tmp SHAR_EOF true || echo 'restore of Makefile failed' rm -f _shar_wnt_.tmp fi # ============= s.tmp.icn ============== if test -f 's.tmp.icn' -a X"$1" != X"-c"; then echo 'x - skipping s.tmp.icn (File already exists)' rm -f _shar_wnt_.tmp else > _shar_wnt_.tmp echo 'x - extracting s.tmp.icn (Text)' sed 's/^X//' << 'SHAR_EOF' > 's.tmp.icn' && Xh11144 Xs 00003/00000/00000 Xd D 1.1 90/10/10 00:09:09 richard 1 0 Xc date and time created 90/10/10 00:09:09 by richard Xe Xu XU Xt XT XI 1 Xprocedure main() Xwrite("hello") Xend XE 1 SHAR_EOF true || echo 'restore of s.tmp.icn failed' rm -f _shar_wnt_.tmp fi exit 0