Skip to content

Commit 7f2d973

Browse files
committed
Fix Makefile to create include directory on install
Also move `Makefile.am` in src to `GNUmakefile.am`
1 parent daeb86e commit 7f2d973

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ $(DESTDIR)$(PREFIX)/lib: $(DESTDIR)$(PREFIX)
244244
$(DESTDIR)$(PREFIX)/include: $(DESTDIR)$(PREFIX)
245245
$(MKDIR) $(DESTDIR)$(PREFIX)/include
246246

247-
$(DESTDIR)$(PREFIX)/include/%.h: include/%.h
247+
$(DESTDIR)$(PREFIX)/include/%.h: include/%.h \
248+
$(DESTDIR)$(PREFIX)/include
248249
$(INSTALL) -v -m0644 "$<" "$@"
249250

250251
install-headers: $(DESTDIR)$(PREFIX)/include/sass.h \

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,5 @@ AC_SUBST(PACKAGE_VERSION)
137137

138138
AC_MSG_NOTICE([Building libsass ($VERSION)])
139139

140-
AC_CONFIG_FILES([GNUmakefile src/Makefile src/support/libsass.pc])
140+
AC_CONFIG_FILES([GNUmakefile src/GNUmakefile src/support/libsass.pc])
141141
AC_OUTPUT
File renamed without changes.

src/source_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ namespace Sass {
4343
}
4444
json_append_member(json_srcmap, "sources", json_includes);
4545

46-
JsonNode *json_contents = json_mkarray();
4746
if (include_sources) {
47+
JsonNode *json_contents = json_mkarray();
4848
for (size_t i = 0; i < source_index.size(); ++i) {
4949
const char *content = sources[source_index[i]];
5050
JsonNode *json_content = json_mkstring(content);

0 commit comments

Comments
 (0)