Skip to content

Commit

Permalink
Makefile: Avoid nonportable 'basename -a'
Browse files Browse the repository at this point in the history
'basename -a' seems be a relatively new feature of GNU coreutils that
is not available in recent Debian releases.

Resolves #505.
  • Loading branch information
lukego committed May 28, 2015
1 parent ce5142d commit eaa408d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eaa408d

Please sign in to comment.