Skip to content

Commit

Permalink
Specify ncurses-related code as addition to fdupes_SOURCES in Makefil…
Browse files Browse the repository at this point in the history
…e.am.
  • Loading branch information
adrianlopezroche committed Aug 30, 2022
1 parent ca3b9de commit 85399a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
30 changes: 3 additions & 27 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bin_PROGRAMS = fdupes

if NO_NCURSES
fdupes_SOURCES = fdupes.c\
fdupes.h\
errormsg.c\
Expand All @@ -25,10 +24,8 @@ fdupes_SOURCES = fdupes.c\
md5/md5.h
dist_man1_MANS = fdupes.1

else
fdupes_SOURCES = fdupes.c\
fdupes.h\
filegroup.h\
if WITH_NCURSES
fdupes_SOURCES += filegroup.h\
fileaction.h\
fileaction.c\
ncurses-commands.c\
Expand All @@ -45,31 +42,10 @@ fdupes_SOURCES = fdupes.c\
ncurses-status.h\
commandidentifier.c\
commandidentifier.h\
errormsg.c\
errormsg.h\
wcs.c\
wcs.h\
dir.c\
dir.h\
log.c\
log.h\
fmatch.c\
fmatch.h\
sigint.c\
sigint.h\
flags.c\
flags.h\
confirmmatch.c\
confirmmatch.h\
removeifnotchanged.c\
removeifnotchanged.h\
mbstowcs_escape_invalid.c\
mbstowcs_escape_invalid.h\
positive_wcwidth.c\
positive_wcwidth.h\
md5/md5.c\
md5/md5.h
dist_man1_MANS = fdupes.1
positive_wcwidth.h
dist_man7_MANS = fdupes-help.7

endif
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ AS_IF([test x"$with_ncurses" != x"no"],
[AC_DEFINE([NO_NCURSES], [], [Do not compile against ncurses])]
)

AM_CONDITIONAL([NO_NCURSES], [test x"$with_ncurses" = x"no"])
AM_CONDITIONAL([WITH_NCURSES], [test x"$with_ncurses" != x"no"])

unescaped_program_transform_name=`echo "${program_transform_name}"|sed -e "s&\\\\$\\\\$&\\\\$&g"`
transformed_program_name=`echo "${PACKAGE_NAME}"|sed -e "${unescaped_program_transform_name}"|sed -e "s&\\\\\\\\&\\\\\\\\\\\\\\\\&g"`
Expand Down

0 comments on commit 85399a0

Please sign in to comment.