diff --git a/src/Makefile b/src/Makefile index 8b2c4bafba..cddeaed72c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -191,7 +191,7 @@ $(INCOBJ): obj/%_inc.o: %.inc Makefile program/programs.inc | $(OBJDIR) # Create list of programs that exist program/programs.inc: - @ls -1d program/*/ | xargs basename -a > $@ + @(for d in program/*/; do basename $$d; done) > $@ .FORCE: program/programs.inc