C_PROGRAMS = test sleep timeout timeout-fgets intr-fgets system1 system2 \ system-with-timeout system-with-timeout-and-multichild-support1 \ system-with-timeout-and-multichild-support2 tcp-server1 \ interval-server system-with-timeout-and-multichild-support3 \ system-with-timeout-and-multichild-support4 tcp-server2 BASH_PROGRAMS = hanger PERL_PROGRAMS = system-with-timeout-and-multichild-support-perl PYTHON_PROGRAMS = system-with-timeout-and-multichild-support-python \ system-with-timeout-and-multichild-support-python2 \ system-with-timeout-and-multichild-support-python3 \ system-with-timeout-and-multichild-support-python4 compile: bash_programs c_compile perl_compile python_compile bash_programs: $(BASH_PROGRAMS) c_compile: $(C_PROGRAMS) perl_compile: $(PERL_PROGRAMS) python_compile: $(PYTHON_PROGRAMS) $(C_PROGRAMS): funcs.o $(C_PROGRAMS) funcs.o: funcs.h %: %.pl cat $^ > $@ chmod +x $@ %: %.py cat $^ > $@ chmod +x $@ clean: $(RM) $(C_PROGRAMS) *.o $(PERL_PROGRAMS) $(PYTHON_PROGRAMS) $(subst %, %.sh, $(BASH_PROGRAMS))